
export default {
  preserve(key, data) {
    window.localStorage.setItem(key, JSON.stringify(data || ""));
  },
  takeOut(key) {
    let token
    try {
      token = JSON.parse(window.localStorage.getItem(key));
    } catch (err) { }
    return token
  },
  remove(key) {
    window.localStorage.removeItem(key);
  },
};
